package org.example.myleet.p403;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution1 solution = new Solution1();
        Assert.isTrue(!solution.canCross(new int[]{0,2}));
        Assert.isTrue(solution.canCross(new int[]{0,1}));
        Assert.isTrue(solution.canCross(new int[]{0,1,3,5,6,8,12,17}));
        Assert.isTrue(!solution.canCross(new int[]{0,1,2,3,4,8,9,11}));
        Assert.isTrue(solution.canCross(new int[]{0,1,2,3,4,5,6,7,8,9,10,15}));
        Assert.isTrue(solution.canCross(new int[]{0,1,2,3,4,5,6,7,8,9,10,15}));
        Assert.isTrue(!solution.canCross(new int[]{0,1,2,3,4,5,6,7,8,9,10,15,16}));
    }
}
